package com.cashmama.market.api.application.controller.order.response;

import com.alibaba.fastjson.JSONObject;
import com.cashmama.market.api.domain.vo.order.OrderFieldDetail;
import com.cashmama.market.api.domain.vo.order.UsageOfLoan;
import com.cashmama.market.api.infras.handler.ResponseData;
import com.google.common.collect.Lists;

import java.util.List;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2019-12-24 17:54
 **/
public class OrderConfirmResponse implements ResponseData {

    private String productCode;
    private String categoryName;
    private String categoryDesc;
    private String categoryLogo;
    List<OrderFieldDetail> orderViewInfo = Lists.newArrayList();
    List<UsageOfLoan> usageOfLoanList = Lists.newArrayList();
    List<OrderFieldDetail> otherInfo = Lists.newArrayList();

    public String getProductCode() {
        return productCode;
    }

    public OrderConfirmResponse setProductCode(String productCode) {
        this.productCode = productCode;
        return this;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public OrderConfirmResponse setCategoryName(String categoryName) {
        this.categoryName = categoryName;
        return this;
    }

    public String getCategoryDesc() {
        return categoryDesc;
    }

    public OrderConfirmResponse setCategoryDesc(String categoryDesc) {
        this.categoryDesc = categoryDesc;
        return this;
    }

    public String getCategoryLogo() {
        return categoryLogo;
    }

    public OrderConfirmResponse setCategoryLogo(String categoryLogo) {
        this.categoryLogo = categoryLogo;
        return this;
    }

    public List<OrderFieldDetail> getOrderViewInfo() {
        return orderViewInfo;
    }

    public OrderConfirmResponse setOrderViewInfo(List<OrderFieldDetail> orderViewInfo) {
        this.orderViewInfo = orderViewInfo;
        return this;
    }

    public List<OrderFieldDetail> getOtherInfo() {
        return otherInfo;
    }

    public OrderConfirmResponse setOtherInfo(List<OrderFieldDetail> otherInfo) {
        this.otherInfo = otherInfo;
        return this;
    }

    public static void main(String[] args) {
        System.out.println(JSONObject.toJSONString(new OrderConfirmResponse()));
    }
}
